Here is an example of openlog , syslog , and closelog : This example sets the logmask so that debug and informational messages get discarded without ever ...
syslog(3) Library Functions Manual syslog(3). NAME top. closelog, openlog, syslog, vsyslog - send messages to the system logger. LIBRARY top. Standard C ...
syslog() generates a log message, which will be distributed by syslogd(8). The priority argument is formed by ORing the facility and the level values ...
To deal with these messages, most Unix systems have a facility called Syslog. It is generally based on a daemon called Syslogd Syslogd listens for messages ...